import request from '@/utils/request'

// 设备入库

// 查询设备入库列表
export function getEqInWarehouseList(param) {
    return request({
        url: 'rest/eqInWarehouse/getListByLike',
        method: 'post',
        data: param
    })
}

// 设备入库
export function getEqInWarehouseSave(param) {
    return request({
        url: 'rest/eqInWarehouse/saveEx',
        method: 'post',
        data: param
    })
}

// 保存设备维养
export function getEqInWarehouseSaveEX(param) {
    return request({
        url: 'rest/eqMaintenance/save',
        method: 'post',
        data: param
    })
}

// 根据入库编号查询设备列表
export function getEquipmentListCode(param) {
    return request({
        url: 'rest/equipment/getListByInWarehouseCode',
        method: 'post',
        data: param
    })
}

// 查询设备维养列表
export function getEqMaintenanceList(param) {
    return request({
        url: 'rest/eqMaintenance/list',
        method: 'post',
        data: param
    })
}

export function getEquipmentBatchSave(param) {
    return request({
        url: 'rest/equipment/batchSave',
        method: 'post',
        data: param
    })
}